Skip to content

feat(repo-tools): output "All tests pass." on silent reporter success#880

Merged
rekmarks merged 1 commit intomainfrom
rekm/update-test-dev-quiet
Mar 18, 2026
Merged

feat(repo-tools): output "All tests pass." on silent reporter success#880
rekmarks merged 1 commit intomainfrom
rekm/update-test-dev-quiet

Conversation

@rekmarks
Copy link
Member

@rekmarks rekmarks commented Mar 18, 2026

SilentReporter previously output nothing when all tests passed. This was confusing Claude. This PR makes it print a single confirmation line so robots looking for text output know that the run completed successfully.

Summary

  • reportSummary: added an else branch that writes All tests pass.\n to stdout when no files fail and there are no unhandled errors
  • Added three reportSummary unit tests: success case (verifies the stdout write), file failure case, and unhandled errors case

Testing

The new behavior is covered by unit tests that spy on process.stdout.write for the success path and spy on DotReporter.prototype.reportSummary for the failure paths.

🤖 Generated with Claude Code


Note

Low Risk
Low risk: small, localized change to Vitest reporter output plus unit tests; only affects stdout messaging on fully passing runs.

Overview
SilentReporter.reportSummary now prints All tests pass.\n to stdout when there are no failed files/tasks and no unhandled errors, instead of staying completely silent.

Adds unit coverage for the new success output and verifies the failure/error paths still delegate to DotReporter.reportSummary.

Written by Cursor Bugbot for commit 5b9ec23. This will update automatically on new commits. Configure here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rekmarks rekmarks requested a review from a team as a code owner March 18, 2026 01:18
@rekmarks rekmarks enabled auto-merge March 18, 2026 01:19
@github-actions
Copy link
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 77.31%
⬆️ +0.04%
7807 / 10098
🔵 Statements 77.12%
⬆️ +0.04%
7932 / 10285
🔵 Functions 75.35%
⬆️ +0.08%
1887 / 2504
🔵 Branches 74.8%
⬆️ +0.14%
3189 / 4263
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/repo-tools/src/vitest-reporters/silent-reporter.ts 55.55%
⬆️ +55.55%
100%
⬆️ +100.00%
28.57%
⬆️ +28.57%
55.55%
⬆️ +55.55%
30-70, 83
Generated in workflow #3949 for commit 5b9ec23 by the Vitest Coverage Report Action

Copy link
Contributor

@FUDCo FUDCo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though there's something disturbing about forcing the SilentReporter to speak.

@rekmarks rekmarks added this pull request to the merge queue Mar 18, 2026
Merged via the queue into main with commit 22fe1a6 Mar 18, 2026
30 checks passed
@rekmarks rekmarks deleted the rekm/update-test-dev-quiet branch March 18, 2026 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants